package com.lsc.record.core.entity;

import com.lsc.record.core.listener.BaseEntityInsertListener;
import com.lsc.record.core.listener.BaseEntityUpdateListener;
import com.mybatisflex.annotation.Table;

@Table(value="dm_type_attr",onInsert = BaseEntityInsertListener.class,onUpdate = BaseEntityUpdateListener.class)
public class DmTypeAttr extends BaseEntity{
	
	private String title;
	
	private String description;
	
	private String typeId;
	
	private String dataType;
	
	private Integer dataLength;
	
	private Boolean dataNullable;
	
	private String dataDefault;
	
	private Boolean isInherited;
	
	private Boolean uniqueness;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public Integer getDataLength() {
		return dataLength;
	}

	public void setDataLength(Integer dataLength) {
		this.dataLength = dataLength;
	}

	public Boolean getDataNullable() {
		if(dataNullable==null) {
			return true;
		}else {			
			return dataNullable;
		}
	}

	public void setDataNullable(Boolean dataNullable) {
		this.dataNullable = dataNullable;
	}

	public String getDataDefault() {
		return dataDefault;
	}

	public void setDataDefault(String dataDefault) {
		this.dataDefault = dataDefault;
	}

	public Boolean getIsInherited() {
		return isInherited;
	}

	public void setIsInherited(Boolean isInherited) {
		this.isInherited = isInherited;
	}

	public Boolean getUniqueness() {
		return uniqueness;
	}

	public void setUniqueness(Boolean uniqueness) {
		this.uniqueness = uniqueness;
	}
	
	
}
